package com.house.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author: GGP
 * @description: 订单DTO
 * @time: 2023-04-16 11:14
 **/
@ApiModel(description = "订单时参数实体类",value = "OrderDTO")
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
public class BillDTO {

	/** id */
	@ApiModelProperty(value = "id",name = "id",example = "1",required = true)
	private Integer id;

	/** 订单号 */
	@ApiModelProperty(value = "订单号",name = "billNumber",required = true)
	private String billNumber;

	/** 房东id */
	@ApiModelProperty(value = "房东id",name = "publisherId",required = true)
	private Integer publisherId;

	/** 用户id */
	@ApiModelProperty(value = "用户id",name = "userId",required = true)
	private Integer userId;

	/** 房源id */
	@ApiModelProperty(value = "房源id",name = "houseId",required = true)
	private Integer houseId;

	/** 房间id */
	@ApiModelProperty(value = "房间id",name = "roomId0",required = true)
	private Integer roomId;

	/** 房间号 */
	@ApiModelProperty(value = "房间号",name = "roomNum",required = true)
	private Integer roomNum;

	/** 价格 */
	@ApiModelProperty(value = "价格",name = "price",required = true)
	private Integer price;

	/** 手机号 */
	@ApiModelProperty(value = "手机号",name = "phone",required = true)
	private String phone;

	/** 姓名 */
	@ApiModelProperty(value = "姓名",name = "uname",required = true)
	private String uname;


	/** 身份证号 */
	@ApiModelProperty(value = "身份证号",name = "idCard",required = true)
	private String idCard;

	/** 入住日期 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "入住日期",name = "checkInTime",required = true)
	private Date checkInTime;

	/** 评分 */
	@ApiModelProperty(value = "评分",name = "score",required = true)
	private Integer score;

	/** 离店日期 */
	@ApiModelProperty(value = "离店日期",name = "checkOutTime",required = true)
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date checkOutTime;

	/** 订单状态 （1:已预订 2:已入住 3:已退房 4:已完成）*/
	@ApiModelProperty(value = "订单状态",name = "status",required = true)
	private Integer status;

	/** 页码 */
	@ApiModelProperty(name = "page",value = "页码",required = true,example = "1")
	private Integer page;

	/** 每页大小 */
	@ApiModelProperty(name = "size",value = "每页大小",required = true,example = "10")
	private Integer size;

}
